<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>共享工作者线程简介</title>
</head>
<body>
  <script>
    const sharedWorker = new SharedWorker('./27_3_1_1_emptySharedWorker.js');
    console.log(sharedWorker);  // SharedWorker {}
  </script>
</body>
</html>